package com.chinanet.listener;

import com.chinanet.service.faultanticipate.LoadModel;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class ApplicationStartup implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        LoadModel service = contextRefreshedEvent.getApplicationContext().getBean(LoadModel.class);
/*        service.build();
        service.buildDB();*/
    }
}